# Dysnomia

A modular IRC bot

## Compile
Compile with
```
dub build
```

## Modularity
Core module is located at modules/src/modCore.d
This allows to bot to add modules, etc. See "prefixhelp core" for more commands

Build this with (change compile as needed):
```bash
cd modules/
dmd src/modCore.d ../source/sharedmemory.d
cd ..
```

Optionally, delete the useless .o file with
```bash
rm modules/modCore.o
```

To use aditional modules, compile in the same way as modCore, but replacing modCore.d with the wanted module

## Usage
Either copy the exampleConfig directory or edit it directly, and edit settings.sdl to match all your settings
All values are at their defaults
Next, edit assets.json to reflect your name (:nickname!username@host), and your channel (and a key if necessary)

To launch the bot, run
```bash
./dysnomia -c path/to/config -m path/to/modules
```
For example,
```bash
./dysnomia -c ./exampleConfig -m ./modules
```

## Commands
For core commands, check "!help core" (with the prefix you entered)

## Notes
If the bot isn't killed properly (with !die), it may leave behind temporary files with the names "Norbit.randomint"
These can be deleted
